<?php

use yii\db\Schema;
use yii\db\Migration;

class m150728_103250_advertiser_map_alter extends Migration
{
    public function up()
    {
    	$this->renameColumn('{{%advertiser_map}}', 'submitDate', 'submit_date');
    	$this->renameColumn('{{%advertiser_map}}', 'expireDate', 'expire_date');
    	$this->alterColumn('{{%advertiser_map}}', 'submit_date', "varchar(19) DEFAULT NULL COMMENT '资质提交时间'");
    	$this->alterColumn('{{%advertiser_map}}', 'expire_date', "varchar(19) DEFAULT NULL COMMENT '资质到期时间'");
    }

    public function down()
    {
        return true;
    }
}
